package com.example.demo.component.proxy.cglib.lazy;

import net.sf.cglib.proxy.LazyLoader;

/**
 * @ClassName ConcreteClassLazyLoader
 * @Description
 * @date 2023/4/6 14:26
 * @Author yanceysong
 * @Version 1.0
 */
public class ConcreteClassLazyLoader implements LazyLoader {
    @Override
    public Object loadObject() throws Exception {
        System.out.println("LazyLoader loadObject() ...");
        PropertyBean bean = new PropertyBean();
        bean.setPropertyName("lazy-load object propertyName!");
        bean.setPropertyValue(11);
        return bean;
    }

}
